using System;
using System.Web.Security;
using System.Web.UI;

public partial class LoginSuccessPage : Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        /*
        if (Request.QueryString["logout"] != null)
        {
            //Session.Remove(UserManager.SessionName);
            //Server.Transfer("Price.aspx");
            if (this.User.Identity != null && this.User.Identity.IsAuthenticated)
            {
                FormsAuthentication.SignOut();
                Response.Redirect("login.aspx?ref=messages");
            }
        }
         */
        if (User.IsInRole("Admin"))
        {
            Response.Redirect("Admin/AdminConsole.aspx");
        }
        else
        {
            Response.Redirect("default.aspx");
        }
    }
}